﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectQuaDep.Admin.ControlAdmin
{
    public partial class Header : System.Web.UI.UserControl
    {
        string nameAdmin = "Admin";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["taikhoanadmin"] == null || Session["taikhoanadmin"].ToString() == "")
                {
                    Response.Redirect("/Admin/login.aspx");
                }
                else
                {
                    //
                }
            }
        }

        protected void lbThoat_Click(object sender, EventArgs e)
        {
            Session["taikhoanadmin"] = null;
            Response.Redirect("/Admin/login.aspx");
        }
    }
}